result=`awk -F: '($2 == "" ) { print $1 " does not have a password "}' /etc/shadow`

if [ -z "$result" ] ; then
    echo "pass"
else
    echo "fail"
fi